﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<skags.Models.ForumThread>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Eyða þræði
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="main">
    <h2>Eyða þræði</h2>

    <h3>Ertu viss um að þú viljir eyða þessum þræði og öllum hans svörum?</h3>
    <fieldset>
        <legend><b><%: Model.Title %></b>, eftir <a href="/Profile/User/<%= Model.AuthorID %>"><%= Model.aspnet_User.UserName %></a> - <%: String.Format("{0:g}", Model.DateCreated) %></legend>
        
        <div class="threadtext"><%= Model.ThreadText %></div>
        
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input type="submit" value="Delete" /> |
		    <%: Html.ActionLink("Aftur á spjallborð", "Index") %>
        </p>
    <% } %>
</div>
</asp:Content>

